import { axios } from '@/utils/request'

/**
 * 查询作业标签
 *
 * @author kxm
 * @date 2022-07-24 15:59:21
 */
export function homeworkTagRelationPage(parameter) {
  return axios({
    url: '/homeworkTagRelation/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 作业标签列表
 *
 * @author kxm
 * @date 2022-07-24 15:59:21
 */
export function homeworkTagRelationList(parameter) {
  return axios({
    url: '/homeworkTagRelation/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加作业标签
 *
 * @author kxm
 * @date 2022-07-24 15:59:21
 */
export function homeworkTagRelationAdd(parameter) {
  return axios({
    url: '/homeworkTagRelation/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑作业标签
 *
 * @author kxm
 * @date 2022-07-24 15:59:21
 */
export function homeworkTagRelationEdit(parameter) {
  return axios({
    url: '/homeworkTagRelation/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除作业标签
 *
 * @author kxm
 * @date 2022-07-24 15:59:21
 */
export function homeworkTagRelationDelete(parameter) {
  return axios({
    url: '/homeworkTagRelation/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出作业标签
 *
 * @author kxm
 * @date 2022-07-24 15:59:21
 */
export function homeworkTagRelationExport(parameter) {
  return axios({
    url: '/homeworkTagRelation/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

/**
 * 保存作业标签关系
 *
 * @author kxm
 * @date 2022-07-24 15:59:21
 */
export function homeworkTagRelationSave(parameter) {
  return axios({
    url: '/homeworkTagRelation/save',
    method: 'post',
    data: parameter
  })
}
